from django.urls import path

from apps.goods import views

app_name = 'goods'

urlpatterns = [
    path('list/<int:category_id>/<int:page_num>/', views.ListView.as_view(), name='list'),
    path('hot/<int:category_id>/', views.HotGoodsView.as_view()),
    path('goods/<int:sku_id>/', views.GoodsDetailView.as_view(), name='detail'),
    path('detail/<int:sku_id>/', views.GoodsDetailView.as_view(), name='detail'),
    path('comments/<int:sku_id>/', views.GoodsCommentView.as_view()),
]
